<?xml version="1.0"?>
<!-- 
	MASTER FILE: 
    This is a collection of non-standard rewrite rules for IIS7 for special configurations in EonicWeb.
	
	To use, copy the rule you need and check for special instructions - such as copying files or virtual directories.
    The rule should generally be added as the second rule in the standard set (after the Frontpage exclusion)
	
-->
<configuration>
	<system.webServer>
		<rewrite>
			<rules>
				<!-- 
					Rule: EW Special: Redirect ewcommon services calls to the root
				    Desc: For websites that run from their own root, not ewcommon, services will need to be 
						  called from within the site.
						  Copy the services.asmx from ewcommon to the root.
				-->
				<rule name="EW Special: Forward services in ewcommon to the root" enabled="true" stopProcessing="true">
					<match url="^/?ewcommon((/services)\.asmx(.*))$"/>
					<action type="Rewrite" url="{R:1}"/>
				</rule>


				<!-- 
					Rule: EW Special: Redirect ewcommon AJAX calls to the root
				    Desc: For websites that employ content editting overrides, copy ajaxadmin.ashx and ajaxcontentform.ashx
						  into a tools menu on the site.
				-->
				<rule name="EW Special: Redirect ewcommon AJAX calls to the root" enabled="true" stopProcessing="true">
					<match url="^/?ewcommon(/tools/ajax(Admin|ContentForm)\.ashx(.*))$"/>
					<action type="Rewrite" url="{R:1}"/>
				</rule>

			</rules>		  
		</rewrite>
	</system.webServer>
</configuration>
